phy: spacemit: support K1 USB2.0 PHY controller
authorZe Huang <huang.ze@linux.dev>
Fri, 17 Oct 2025 14:49:53 +0000 (22:49 +0800)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 12 Mar 2026 12:28:10 +0000 (13:28 +0100)
commit6a4e8ad74b75ceaa4501da965a2c5be78b082fab
tree697173df5605aa788692b77b60d753fe7d4b8e66
parentd9fabf37d5d7a08d3e980496f758d479b608ab12
phy: spacemit: support K1 USB2.0 PHY controller

Origin: https://git.kernel.org/linus/fe4bc1a08638309b6be1af37210930b856908eb7

The SpacemiT K1 SoC includes three USB ports:

- One USB2.0 OTG port
- One USB2.0 host-only port
- One USB3.0 port with an integrated USB2.0 DRD interface

Each of these ports is connected to a USB2.0 PHY responsible for USB2
transmission.

This commit adds support for the SpacemiT K1 USB2.0 PHY, which is
compliant with the USB 2.0 specification and supports both 8-bit 60MHz
and 16-bit 30MHz parallel interfaces.

Signed-off-by: Ze Huang <huang.ze@linux.dev>
Tested-by: Aurelien Jarno <aurelien@aurel32.net>
Tested-by: Junzhong Pan <panjunzhong@linux.spacemit.com>
Link: https://patch.msgid.link/20251017-k1-usb2phy-v6-2-7cf9ea2477a1@linux.dev
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Gbp-Pq: Topic features/riscv64
Gbp-Pq: Name phy-spacemit-support-K1-USB2.0-PHY-controller.patch
drivers/phy/Kconfig
drivers/phy/Makefile
drivers/phy/spacemit/Kconfig [new file with mode: 0644]
drivers/phy/spacemit/Makefile [new file with mode: 0644]
drivers/phy/spacemit/phy-k1-usb2.c [new file with mode: 0644]